<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>up7单文件上传样式演示页面</title>
    <script type="text/javascript" src="/static/js/jquery-1.4.min.js"></script>
    <script type="text/javascript" src="/static/js/json2.min.js" charset="utf-8"></script>
    ${pageParam}
    ${up7Header}
    <script language="javascript" type="text/javascript">
        var cbMgr = new HttpUploaderMgr();
        cbMgr.event.md5Complete = function (obj, md5) { /*alert(md5);*/ };
        cbMgr.event.fileComplete = function (obj) { /*alert(obj.pathSvr);*/ };
        cbMgr.Config.Fields["test"] = "test";

        $(function ()
        {
            cbMgr.load_to("FilePanel");
            //上传指定文件
            $("#btnUpF").click(function () {
                var path = $("#filePath").val();
                cbMgr.app.addFile({ pathLoc: path });
            });
            //上传指定目录
            $("#btnUpFd").click(function () {
                var path = $("#folderPath").val();
                cbMgr.app.addFolder({ pathLoc: path });
            });
        });
    </script>
</head>

<body>
<p>up7此页面演示单个文件上传样式</p>
<p><a href="/up7/panel" target="_blank">单面板演示</a></p>
<p><a href="db/clear" target="_blank">清空数据库</a></p>
<p><a href="filemgr/index" target="_blank">文件管理器示例</a></p>
<p><a href="down3/index" target="_blank">文件下载示例</a></p>
<div id="FilePanel"></div>
<div id="msg"></div>
</body>
</html>